<?php
	function status($status){
		switch ($status) {
			case 1:
			return	'<span class="badge badge-primary">激活</span>';
				break;
			case 0:
			return	'<span class="badge badge-warning">禁用</span>';
				break;
			
			default:
				break;
		}
	}
	function prodect_status($status){
		switch ($status) {
			case 1:
			return	'<span class="badge badge-primary">上架</span>';
				break;
			case 0:
			return	'<span class="badge badge-warning">下架</span>';
				break;
			
			default:
				break;
		}
	}